package com.example.entity.item;

import java.util.Date;

public class Carts {
    private Integer cartID; //购物车订单ID
    private String UID;//用户编号UID
    private Integer id; //用户ID
    private String itemId; //商品ID
    private Integer Quantity; //商品数量
    private Date createdAt; //购物车加入时间
    private Boolean checked; //订单是否下单

    @Override
    public String toString() {
        return "Carts{" +
                "cartID=" + cartID +
                ", UID='" + UID + '\'' +
                ", id=" + id +
                ", itemId='" + itemId + '\'' +
                ", Quantity=" + Quantity +
                ", createdAt=" + createdAt +
                ", checked=" + checked +
                '}';
    }

    public Integer getCartID() {
        return cartID;
    }

    public void setCartID(Integer cartID) {
        this.cartID = cartID;
    }

    public String getUID() {
        return UID;
    }

    public void setUID(String UID) {
        this.UID = UID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer quantity) {
        Quantity = quantity;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }
}
